<template>
	<view>
		<view class="box">
			<view class="name">
				用户 ：{{message.name}}
				<text>{{message.date}}</text>
			</view>
			<view class="title">
				{{message.title}}
				
			</view>
			
			<view class="content">
				{{message.content}}
			</view>
			
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				message: ''
			}
		},
		methods: {

		},
		onLoad(option) {
			// console.log(option.itemid);
			uni.request({
				url: 'http://localhost:8091/freshmenapp/message/findone',
				method: 'POST',
				data: {
					id: option.itemid
				},
				success: res => {
					this.message = res.data.data
					// console.log(this.message);
				},
				fail: () => {},
				complete: () => {}
			});
		}
	}
</script>

<style>
.box{
	margin-top: 10px;
	font-size: 16px;
	padding: 15px 10px;
	height: 89vh;
	background: linear-gradient(#fff,#ccc);
}

.name{
	/* border: 1px solid #ccc; */
	margin-bottom: 10px;
}

.name text{
	margin-left:140px;
}
.title{
	text-align: center;
	font-size: 18px;
	font-weight: 600;
}
.content{
	text-align: center;
	margin-top: 10px;
}
</style>